<?php

$db->connect();
$statement = 'SELECT * FROM tabp_modules';
$items = $db->execSQL($statement);
$db->disconnect();

// TODO: Logo + Beschreibung anzeigen
foreach ($items as $item) {
    echo '<div class=\'Container\'>';
    switch ($item->ID_Module) {
        case 1:
            echo '<img src=\'../gfx/system/modules_newPage_200_54.png\'>';
            break;
    }
    if ($item->Description != '') {
        echo '<div class=\'DescText\'>';
        echo  $item->Description;
        echo '</div>';
    }
    echo '</div>';
}
?>
